CREATE TABLE [dbo].[WordBookmark]
(
[Id] [int] NOT NULL IDENTITY(1, 1),
[WordTemplateId] [int] NOT NULL,
[BookmarkGroupId] [int] NULL,
[Name] [varbinary] (max) NOT NULL,
[Description] [varbinary] (max) NULL,
[DateCreated] [datetime] NOT NULL,
[IsTextBookmark] [bit] NOT NULL,
[Visible] [bit] NOT NULL,
[Deleted] [bit] NOT NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
ALTER TABLE [dbo].[WordBookmark] ADD
CONSTRAINT [FK_WordBookmark_BookmarkGroup] FOREIGN KEY ([BookmarkGroupId]) REFERENCES [dbo].[BookmarkGroup] ([Id])
ALTER TABLE [dbo].[WordBookmark] ADD
CONSTRAINT [FK_WordBookmark_WordTemplate] FOREIGN KEY ([WordTemplateId]) REFERENCES [dbo].[WordTemplate] ([Id])
GO
ALTER TABLE [dbo].[WordBookmark] ADD CONSTRAINT [PK_Bookmarks] PRIMARY KEY CLUSTERED  ([Id]) ON [PRIMARY]
GO
